/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package shoppersservlets;

import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

/**
 *
 * @author Micosil
 */
public class RequestSanitizerWrapper extends HttpServletRequestWrapper {

    public RequestSanitizerWrapper(HttpServletRequest request) {
        super(request);
    }

    @Override
    public String getParameter(String name) {
        return (super.getParameter(name).replaceAll("<", "").replaceAll(">", "").replaceAll(";", ""));
    }
    
    
    
    
    
}
